global activeSprite, snap1, snap2, stickh1, stickh2, stickv1, stickv2, offLeft, offRight, onScaleList, side
if not snap1 and not snap2 then
if (the locH of sprite activeSprite > (stickh1 - 70)) and (the locH of sprite activeSprite < (stickh1 + 70)) and (the locV of sprite activeSprite > (stickv1 - 40)) and (the locV of sprite activeSprite < (stickv1 + 40)) then
if side <> "Left" then
set the locH of sprite activeSprite to stickh1
set the locV of sprite activeSprite to stickv1
set snap1 to 1
puppetSound(0)
puppetSound("Floop.S")
updateStage()
wait(20)
puppetSound(0)
else
set the locH of sprite activeSprite to the mouseH
set the locV of sprite activeSprite to the mouseV
end if
else
if (the locH of sprite activeSprite > (stickh2 - 70)) and (the locH of sprite activeSprite < (stickh2 + 70)) and (the locV of sprite activeSprite > (stickv2 - 40)) and (the locV of sprite activeSprite < (stickv2 + 40)) then
if side <> "Right" then
set the locH of sprite activeSprite to stickh2
set the locV of sprite activeSprite to stickv2
set snap2 to 1
puppetSound(0)
puppetSound("Floop.S")
updateStage()
wait(20)
puppetSound(0)
else
set the locH of sprite activeSprite to the mouseH
set the locV of sprite activeSprite to the mouseV
end if
else
set the locH of sprite activeSprite to the mouseH
set the locV of sprite activeSprite to the mouseV
end if
end if
else
if snap1 and ((the mouseH < (stickh1 - 70)) or (the mouseH > (stickh1 + 70)) or (the mouseV < (stickv1 - 40)) or (the mouseV > (stickv1 + 40))) then
set the locH of sprite activeSprite to the mouseH
set the locV of sprite activeSprite to the mouseV
set snap1 to 0
end if
if snap2 and ((the mouseH < (stickh2 - 70)) or (the mouseH > (stickh2 + 70)) or (the mouseV < (stickv2 - 40)) or (the mouseV > (stickv2 + 40))) then